<include file="Public:head" />
<include file="Public:header" />
<include file="Public:left" />

<section id='content'>
<div class='container-fluid'>
<div class='row-fluid' id='content-wrapper'>
<div class='span12'>
<div class='row-fluid'>
    <div class='span12'>
        <div class='page-header'>
            <h1 class='pull-left'>
                <i class='icon-table'></i>
                <span>企业管理</span>
            </h1>
            
        </div>
    </div>
</div>
<div class='row-fluid'>
   <div class='span12'>
            <div class='pull-right'>
                <form action="{:U('Company/company_list')}" method="post" style="margin:0px;">
                    <input id="search_key" placeholder="企业关键字" type="text" name="company_name">
                    <input type="submit" value="搜索" name="sub" style="margin-bottom:10px;">
                </form>
        </div>
    </div>
</div>
<div class='row-fluid'>
    <div class='span12 box bordered-box blue-border' style='margin-bottom:0;'>
        <div class='box-header blue-background'>
            <div class='title'>企业登陆列表</div>
            
        </div>
        <div class='box-content box-no-padding'>
            <div class='responsive-table'>
                <div class='scrollable-area'>
                    <table class='table' style='margin-bottom:0;'>
                        <thead>
                        <tr>
                            <th>企业名称</th>
                            <th>套餐类型</th>
                            <th>所属代理商</th>
                            <th>注册时间</th>
                            <th>套餐使用情况</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <volist name="company.data" id="c">
                                <tr>
                                    <td>{$c.company_name}</td>                                 
                                    <td>{$c.company_menu}</td>
                                    <td>{$c.company_agent}</td>
                                    <td>{$c.ctime|date="Y-m-d H:i",###}</td>
                                    <td><a class='btn btn-success btn-mini' data-toggle='modal' href='#modal-example{$c.cid}' role='button' style='margin-bottom: 5px'>点击查看</a> <a class='btn btn-warning btn-mini' href='__ROOT__/haiying.php?s=/Company/edit_menu/cid/{$c.cid}'  style='margin-bottom: 5px'>修改</a></td>
                                    <td><eq name="c.is_del" value="1"><font color="red">已删除</font><else/>正常</eq></td>
                                    <td>
                                        <div class='text-left'>
                                            <a class='btn btn-success btn-mini' href='__URL__/company_edit/cid/{$c.cid}'>
                                                <i class='icon-pencil'></i>
                                            </a>
                                            <a class='btn btn-danger btn-mini'  onclick="del_u({$c.cid});">
                                                <i class='icon-remove' ></i>
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                <style>.modal-body ul li {
                                        padding-top:5px;
                                    }.modal-body ul li strong{
                                        padding-left:10px;
                                    }</style>
                                <div class='modal hide fade' id='modal-example{$c.cid}' role='dialog' tabindex='-1' style="width:250px;">
                                    <div class='modal-body'>
                                        <ul class='unstyled features' style="padding-top:0px;">
            <li> 
                下载简历量
                <strong>{$c.menu.resume_num}个</strong> 
            </li>
            <li>
                发布职位量
                <strong>{$c.menu.job_num}个</strong> 
            </li>
            <li> 
                刷新职位次数
                <strong>{$c.menu.refresh}个</strong> 
            </li>
            <li>
                置顶职位次数
                <strong>{$c.menu.stick}个</strong> 
            </li>
            <li>
                预约面试
                <strong><eq name="c.menu.interview" value="0"><a class="btn btn-danger btn-mini" href="#">
                                        <i class="icon-remove"></i>
                                    </a><else/><a class="btn btn-success btn-mini" href="#">
                                        <i class="icon-ok"></i>
                                    </a></eq></strong>
            </li>
            <li>
                DIY微门户
                <strong><eq name="c.menu.diy_portal" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                微面试
                <strong><eq name="c.menu.wei_interview" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                微留言
                <strong><eq name="c.menu.wei_note" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                生成二维码
                <strong><eq name="c.menu.qr_codes" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                绑定微信
                <strong><eq name="c.menu.bound_weixin" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                自定义回复
                <strong><eq name="c.menu.custom_reply" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                自定义菜单
                <strong><eq name="c.menu.custom_menu" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                关联品牌
                <strong><eq name="c.menu.guanlian_brand" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                添加门店地址
                <strong><eq name="c.menu.add_address" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                一对一客服服务
                <strong><eq name="c.menu.one_to_one" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                7x12小时专业服务
                <strong><eq name="c.menu.specialty_service" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                定期提供相应数据报告
                <strong><eq name="c.menu.data_reporting" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                远程协助
                <strong><eq name="c.menu.remote_help" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                定制开发
                <strong><eq name="c.menu.customize_develop" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                会员管理
                <strong><eq name="c.menu.manager" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                版权去除
                <strong><eq name="c.menu.copyright" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                校园招聘
                <strong><eq name="c.menu.campus_recruitment" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
            <li>
                专题服务
                <strong><eq name="c.menu.events" value="0"><a class="btn btn-danger btn-mini" href="#"><i class="icon-remove"></i></a><else/><a class="btn btn-success btn-mini" href="#"><i class="icon-ok"></i></a></eq></strong>
            </li>
        </ul>
                                    </div>
                                    <div class='modal-footer'>
                                        <button class='btn' data-dismiss='modal'>关闭</button>
                                    </div>
                                </div>
                            </volist>
                            <script type="text/javascript">
                                function del_u(val){
                                    $.post("__URL__/del_user", { "id": val},
                                       function(data){
                                        if (data.status==1) {
                                          location.replace(location.href);  }
                                       }, "json");
                                            
                                }        
                                </script>
                        </tbody>
                    </table>
                    <div>
                            {$company.html}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</div>
</div>
</div>
</section>
</div>

<include file="Public:bottom" />
<script type="text/javascript">
    $(document).ready(function () {
      $("ul[class='nav nav-stacked']").removeClass('in');
      $("#company").addClass('in');
      $("li[class='guan']").removeClass('active');
      $("#company_list").addClass('active');
    });
</script>